package com.fishery.authority.handler;

import com.fishery.authority.client.BaseClient;
import com.fishery.authority.entity.vo.CreateBaseVo;
import com.fishery.entity.Result;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 白sa能
 * @className
 * @date Created in 8:38 AM 1/31/21
 * @package com.fishery.authority.client
 * @Description
 */
@Component
public class BaseClientFallback implements BaseClient {
    @Override
    public Result getBaseInfo(String baseId) {
        return Result.error("服务繁忙，本次操作失败，请重新操作");
    }

    @Override
    public Result delBase(String baseId) {
        return Result.error("服务繁忙，本次操作失败，请重新操作");
    }

    @Override
    public Result createBase(CreateBaseVo vo) {
        return Result.error("服务繁忙，本次操作失败，请重新操作");
    }
}
